package com.example.doctor.jpa;

import com.example.common.entity.Hospital;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface HospitalRepository extends JpaRepository<Hospital, Long> {
    @Query(value = "select  * from h_hospital order by ID_bigint desc limit 0, 1",nativeQuery = true)
    Hospital findByLast();
}
